package cn.kpi.dao.workassessment;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.workassessment.GroupEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisDao
public interface GroupDao {
	public List<GroupEntity> GetGroupList(@Param("where") String where) throws Exception;

	public List<GroupEntity> GetGroupListLimit(@Param("where") String where, @Param("order") String order, @Param("beginrow") int beginrow, @Param("endrow") int endrow) throws Exception;
	
	public int GetGroupListCount(@Param("where") String where) throws Exception;

	public int InsertEntity(GroupEntity entity) throws Exception;

	public int UpdateEntity(GroupEntity entity) throws Exception;

	public int DeleteEntity(@Param("groupid") Long roleid) throws Exception;



	 public int  DeleteGroup(@Param("groupid") Long roleid);
}
